package com.data.JVM;

/**
 * Created by wangbing on 2018/5/30.
 */
public class test_compiler {


    public static void main(String[] args) {
/**
 * @param
 */
        final  String STR="java"+"虚拟机精讲";
        System.out.println(STR);
        com.sun.tools.javac.main.Main compiler = new com.sun.tools.javac.main.Main("javac");
        /**
         * 调用compiler方法并进行编译
         */

        com.sun.tools.javac.main.Main.Result result = compiler.compile(new String[]{
                "D:\\IDEAWorkSpace\\mooc_data\\src\\main\\java\\com\\data\\JVM\\JavaVMStackSOF.java"

        });
        System.out.println(result);

    }
}